using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class GetWeiBoURLReq : GeneratedMessageLite<GetWeiBoURLReq, GetWeiBoURLReq.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<GetWeiBoURLReq, GetWeiBoURLReq.Builder>
		{
			private bool resultIsReadOnly;
			private GetWeiBoURLReq result;
			protected override GetWeiBoURLReq.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override GetWeiBoURLReq MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override GetWeiBoURLReq DefaultInstanceForType
			{
				get
				{
					return GetWeiBoURLReq.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public SKBuiltinBuffer_t A2Key
			{
				get
				{
					return this.result.A2Key;
				}
				set
				{
					this.SetA2Key(value);
				}
			}
			public string UserName
			{
				get
				{
					return this.result.UserName;
				}
				set
				{
					this.SetUserName(value);
				}
			}
			public uint Scene
			{
				get
				{
					return this.result.Scene;
				}
				set
				{
					this.SetScene(value);
				}
			}
			public string BlogUserName
			{
				get
				{
					return this.result.BlogUserName;
				}
				set
				{
					this.SetBlogUserName(value);
				}
			}
			public Builder()
			{
				this.result = GetWeiBoURLReq.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(GetWeiBoURLReq cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private GetWeiBoURLReq PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GetWeiBoURLReq other = this.result;
					this.result = new GetWeiBoURLReq();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override GetWeiBoURLReq.Builder Clear()
			{
				this.result = GetWeiBoURLReq.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override GetWeiBoURLReq.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GetWeiBoURLReq.Builder(this.result);
				}
				return new GetWeiBoURLReq.Builder().MergeFrom(this.result);
			}
			public override GetWeiBoURLReq BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override GetWeiBoURLReq.Builder MergeFrom(IMessageLite other)
			{
				if (other is GetWeiBoURLReq)
				{
					return this.MergeFrom((GetWeiBoURLReq)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override GetWeiBoURLReq.Builder MergeFrom(GetWeiBoURLReq other)
			{
				return this;
			}
			public override GetWeiBoURLReq.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override GetWeiBoURLReq.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GetWeiBoURLReq._getWeiBoURLReqFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = GetWeiBoURLReq._getWeiBoURLReqFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 18u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseRequest.Builder builder = BaseRequest.CreateBuilder();
							if (this.result.hasBaseRequest)
							{
								builder.MergeFrom(this.BaseRequest);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseRequest = builder.BuildPartial();
							continue;
						}
						if (num3 == 18u)
						{
							SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
							if (this.result.hasA2Key)
							{
								builder2.MergeFrom(this.A2Key);
							}
							input.ReadMessage(builder2, extensionRegistry);
							this.A2Key = builder2.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 26u)
						{
							this.result.hasUserName = input.ReadString(ref this.result.userName_);
							continue;
						}
						if (num3 == 32u)
						{
							this.result.hasScene = input.ReadUInt32(ref this.result.scene_);
							continue;
						}
						if (num3 == 42u)
						{
							this.result.hasBlogUserName = input.ReadString(ref this.result.blogUserName_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public GetWeiBoURLReq.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public GetWeiBoURLReq.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public GetWeiBoURLReq.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public GetWeiBoURLReq.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public GetWeiBoURLReq.Builder SetA2Key(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasA2Key = true;
				this.result.a2Key_ = value;
				return this;
			}
			public GetWeiBoURLReq.Builder SetA2Key(SKBuiltinBuffer_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasA2Key = true;
				this.result.a2Key_ = builderForValue.Build();
				return this;
			}
			public GetWeiBoURLReq.Builder MergeA2Key(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasA2Key && this.result.a2Key_ != SKBuiltinBuffer_t.DefaultInstance)
				{
					this.result.a2Key_ = SKBuiltinBuffer_t.CreateBuilder(this.result.a2Key_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.a2Key_ = value;
				}
				this.result.hasA2Key = true;
				return this;
			}
			public GetWeiBoURLReq.Builder ClearA2Key()
			{
				this.PrepareBuilder();
				this.result.hasA2Key = false;
				this.result.a2Key_ = null;
				return this;
			}
			public GetWeiBoURLReq.Builder SetUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasUserName = true;
				this.result.userName_ = value;
				return this;
			}
			public GetWeiBoURLReq.Builder ClearUserName()
			{
				this.PrepareBuilder();
				this.result.hasUserName = false;
				this.result.userName_ = "";
				return this;
			}
			public GetWeiBoURLReq.Builder SetScene(uint value)
			{
				this.PrepareBuilder();
				this.result.hasScene = true;
				this.result.scene_ = value;
				return this;
			}
			public GetWeiBoURLReq.Builder ClearScene()
			{
				this.PrepareBuilder();
				this.result.hasScene = false;
				this.result.scene_ = 0u;
				return this;
			}
			public GetWeiBoURLReq.Builder SetBlogUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBlogUserName = true;
				this.result.blogUserName_ = value;
				return this;
			}
			public GetWeiBoURLReq.Builder ClearBlogUserName()
			{
				this.PrepareBuilder();
				this.result.hasBlogUserName = false;
				this.result.blogUserName_ = "";
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int A2KeyFieldNumber = 2;
		public const int UserNameFieldNumber = 3;
		public const int SceneFieldNumber = 4;
		public const int BlogUserNameFieldNumber = 5;
		private static readonly GetWeiBoURLReq defaultInstance;
		private static readonly string[] _getWeiBoURLReqFieldNames;
		private static readonly uint[] _getWeiBoURLReqFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasA2Key;
		private SKBuiltinBuffer_t a2Key_;
		private bool hasUserName;
		private string userName_ = "";
		private bool hasScene;
		private uint scene_;
		private bool hasBlogUserName;
		private string blogUserName_ = "";
		private int memoizedSerializedSize = -1;
		public static GetWeiBoURLReq DefaultInstance
		{
			get
			{
				return GetWeiBoURLReq.defaultInstance;
			}
		}
		public override GetWeiBoURLReq DefaultInstanceForType
		{
			get
			{
				return GetWeiBoURLReq.DefaultInstance;
			}
		}
		protected override GetWeiBoURLReq ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public SKBuiltinBuffer_t A2Key
		{
			get
			{
				return this.a2Key_ ?? SKBuiltinBuffer_t.DefaultInstance;
			}
		}
		public string UserName
		{
			get
			{
				return this.userName_;
			}
		}
		public uint Scene
		{
			get
			{
				return this.scene_;
			}
		}
		public string BlogUserName
		{
			get
			{
				return this.blogUserName_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasA2Key && this.BaseRequest.IsInitialized && this.A2Key.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasA2Key)
				{
					num += CodedOutputStream.ComputeMessageSize(2, this.A2Key);
				}
				if (this.hasUserName)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.UserName);
				}
				if (this.hasScene)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.Scene);
				}
				if (this.hasBlogUserName)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.BlogUserName);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private GetWeiBoURLReq()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] getWeiBoURLReqFieldNames = GetWeiBoURLReq._getWeiBoURLReqFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, getWeiBoURLReqFieldNames[1], this.BaseRequest);
			}
			if (this.hasA2Key)
			{
				output.WriteMessage(2, getWeiBoURLReqFieldNames[0], this.A2Key);
			}
			if (this.hasUserName)
			{
				output.WriteString(3, getWeiBoURLReqFieldNames[4], this.UserName);
			}
			if (this.hasScene)
			{
				output.WriteUInt32(4, getWeiBoURLReqFieldNames[3], this.Scene);
			}
			if (this.hasBlogUserName)
			{
				output.WriteString(5, getWeiBoURLReqFieldNames[2], this.BlogUserName);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasA2Key)
			{
				num ^= this.a2Key_.GetHashCode();
			}
			if (this.hasUserName)
			{
				num ^= this.userName_.GetHashCode();
			}
			if (this.hasScene)
			{
				num ^= this.scene_.GetHashCode();
			}
			if (this.hasBlogUserName)
			{
				num ^= this.blogUserName_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			GetWeiBoURLReq getWeiBoURLReq = object_0 as GetWeiBoURLReq;
			return getWeiBoURLReq != null && (this.hasBaseRequest == getWeiBoURLReq.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(getWeiBoURLReq.baseRequest_))) && (this.hasA2Key == getWeiBoURLReq.hasA2Key && (!this.hasA2Key || this.a2Key_.Equals(getWeiBoURLReq.a2Key_))) && (this.hasUserName == getWeiBoURLReq.hasUserName && (!this.hasUserName || this.userName_.Equals(getWeiBoURLReq.userName_))) && (this.hasScene == getWeiBoURLReq.hasScene && (!this.hasScene || this.scene_.Equals(getWeiBoURLReq.scene_))) && (this.hasBlogUserName == getWeiBoURLReq.hasBlogUserName && (!this.hasBlogUserName || this.blogUserName_.Equals(getWeiBoURLReq.blogUserName_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<GetWeiBoURLReq, GetWeiBoURLReq.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<GetWeiBoURLReq, GetWeiBoURLReq.Builder>.PrintField("A2Key", this.hasA2Key, this.a2Key_, writer);
			GeneratedMessageLite<GetWeiBoURLReq, GetWeiBoURLReq.Builder>.PrintField("UserName", this.hasUserName, this.userName_, writer);
			GeneratedMessageLite<GetWeiBoURLReq, GetWeiBoURLReq.Builder>.PrintField("Scene", this.hasScene, this.scene_, writer);
			GeneratedMessageLite<GetWeiBoURLReq, GetWeiBoURLReq.Builder>.PrintField("BlogUserName", this.hasBlogUserName, this.blogUserName_, writer);
		}
		public static GetWeiBoURLReq ParseFrom(byte[] data)
		{
			return GetWeiBoURLReq.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private GetWeiBoURLReq MakeReadOnly()
		{
			return this;
		}
		public static GetWeiBoURLReq.Builder CreateBuilder()
		{
			return new GetWeiBoURLReq.Builder();
		}
		public override GetWeiBoURLReq.Builder ToBuilder()
		{
			return GetWeiBoURLReq.CreateBuilder(this);
		}
		public override GetWeiBoURLReq.Builder CreateBuilderForType()
		{
			return new GetWeiBoURLReq.Builder();
		}
		public static GetWeiBoURLReq.Builder CreateBuilder(GetWeiBoURLReq prototype)
		{
			return new GetWeiBoURLReq.Builder(prototype);
		}
		static GetWeiBoURLReq()
		{
			GetWeiBoURLReq.defaultInstance = new GetWeiBoURLReq().MakeReadOnly();
			GetWeiBoURLReq._getWeiBoURLReqFieldNames = new string[]
			{
				"A2Key",
				"BaseRequest",
				"BlogUserName",
				"Scene",
				"UserName"
			};
			GetWeiBoURLReq._getWeiBoURLReqFieldTags = new uint[]
			{
				18u,
				10u,
				42u,
				32u,
				26u
			};
			object.ReferenceEquals(micromsg.Proto.GetWeiBoURLReq.Descriptor, null);
		}
	}
}
